package com.fuhao.adapter.object;

public class Test {
	public static void main(String[] args) {
		Power jp220vInterface = new JP220VInterfaceImpl();
		//适配220V的适配器
		PowerAdapter powerAdapter = new PowerAdapter(jp220vInterface);
		//本来这个电饭煲需要110V才能工作，现在加了一个实现110V的适配器去适配220V
		ElectricCooker electricCooker = new ElectricCooker(powerAdapter);
		electricCooker.cookie();
	}
}
